package com.ruoyi.bookkeeping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 动态对象 book_dynamic
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Data
@ApiModel("动态对象")
public class BookDynamic
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("动态id")
    @TableId(type = IdType.AUTO)
    private Long dynamicId;

    @ApiModelProperty("发动态的人id")
    @Excel(name = "发动态的人id")
    private Long dynamicUserId;

    @ApiModelProperty("动态内容")
    @Excel(name = "动态内容")
    private String dynamicContent;

    @ApiModelProperty("动态图片")
    @Excel(name = "动态图片")
    private String dynamicImg;

    @ApiModelProperty("动态点赞数量")
    @Excel(name = "动态点赞数量")
    private Long dynamicGoodNum;

    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
